package com.hcs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hcs
 * @since 2025-01-12 09:26
 */
@Getter
@Setter
@TableName("role")
@Schema(name = "role", description = "角色表")
public class Role {

    // 主键
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 角色名称
    @Schema(description = "角色名称")
    @TableField("name")
    private String name;

    // 角色描述
    @Schema(description = "角色描述")
    @TableField("description")
    private String description;

    // 创建时间
    @Schema(description = "创建时间")
    @TableField("created_at")
    private Date createdAt;

    // 更新时间
    @Schema(description = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;
}
